header {
    width: 100%;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
    border-bottom: 5px solid #3498db;
    .navbar {
        display: flex;
        align-items: center;
        min-height: 3.75rem;
        .logo {
            color: #2ecc71;
            font-size: 1.25rem;
            font-weight: 700;
            margin-right: 1.25rem;
        }
        .right_wrap {
            display: flex;
            flex-grow: 1;
            align-items: center;
            a {
                padding: .4375rem .9375rem ;
                border-radius: 5px;
                transition: all .3s;
            }
            .links{
                display: flex;
                flex: 1;
                align-self: flex-start;
                // margin-right: auto;
                justify-content: space-between;
                 li {
                    a{
                        color: #2ecc71;
                       &:hover,&.active{
                        color: #ecf0f1;
                        background-color: #2ecc71;;
                       }
                    }
                }
            }
            .form {
                margin-left: .625rem;
                user-select: none;
                a {
                    border: 1px solid #2ecc71;
                    color: #27ae60;
                    margin: 0 5px;
                    &:hover,&.register{
                        background-color: #3498db;
                        color: #ecf0f1;
                    }
                    &.register {
                        opacity: .8;
                    }
                    &.register:hover {
                        opacity: 1;
                    }
                }
            }
        }
    }
    label{
        &,&+input{
            display: none;
        }
    }
}
@media all and (max-width:768px) {
    header {
        .navbar {
            flex-flow: row wrap;
            .logo{
                margin-right: auto;
            }
            .right_wrap{
                flex-flow: column wrap;
                height: 0;
                width: 100%;
                overflow: hidden;
                .links{
                    flex-direction: column;
                    li {
                        margin: .625rem 0;
                        margin-left: 0;
                        width: 100%;
                       a {
                           display: inline-block;
                           width: 100%;
                       }
                    }
                }
                .form {
                    display: flex;
                    margin-right:auto ;
                    margin-bottom: .625rem;
                }
            }
            label {
                display: block;
                margin: 5px 0;
                padding: .625rem;
                font-size: 1.25rem;
                color: #2980b9;
                cursor: pointer;
                border: 2px solid #ecf0f1;
                &:hover{
                   border-color: #2980b9;
                }
                &+input:checked {
                    &+.right_wrap {
                        height: auto;
                    }
                }
            }
        }
    }
}